package entity

import (
	"app/pkg/ai"
	"time"
)

type ChatRequest struct {
	ChatUUID     string            `json:"chat_uuid" form:"chat_uuid" binding:"required,len=32"`
	Text         string            `json:"text" form:"text"`
	Conversation []*ai.ChatMessage `json:"conversation"  form:"conversation"`
}

type ChatStreamRequest struct {
	UserID      int
	Result      string
	Instruction string
	StartTime   time.Time
	Error       error
	Request     *ChatRequest
}
